home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
First Tutorial
/
Percdemo
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
943b
|
36 lines
(setq symbols '(a b c d e f g))
(def-rhythm
; Bars 1 2
; |---|---|---|---| fill pattern
perc1 '1/16 "-- -- --- ---- -" (q); bongo h
perc2 '1/16 " -- -- --- ---" (r); bongo l
perc3 '1/16 "- -- -- -- -" (z); cabasa
perc4 '1/16 " - - - - " (p); cowbell
bass '1/8 "-- --- - -- ---" symbols
)
(setq tonals (activate-tonality (blues1 c 2) (chromatic c 3)))
(def-channel
perc1 10
perc2 10
perc3 10
perc4 10
bass 1
)
(midiport :printer)
(def-tempo 120)
(compile-song-p "ccl;output:" 1/8 "percdemo"
; |---|---|---|---|
changes tonals ". .. .. .. "
perc1 mt-32 "- ---- ---- -"
perc2 mt-32 " - ---- ---- -"
perc3 mt-32 " - ------ ---"
perc4 mt-32 " - --------"
bass changes "------- ------"
)